<style type="text/css">
  .detail-wrapper {
    width: 900px;
    border-radius: 2px;
    background: #FFF;
    box-shadow: 0 2px 2px #CCC;
    margin-bottom: 50px;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 5% auto;
    max-height: 600px;
    overflow: hidden;
  }

  .block {
    padding: 10px 10px;
  }

  .title {
    font-size: 42px;
    margin: 0px;
    margin-bottom: 5px;
    color: #434344;
  }

  .desc {
    font-size: 16px;
    line-height: 1.5;
    padding: 8px;
    min-height: 80px;
  }

  .line {
    border-top: 1px dotted #EFEFEF;
  }

  .shadow {
    background: rgba(0,0,0,.5) !important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
  }

  .comment-list {
    padding: 0;
    margin-top: 10px;
  }

  .sub-title {
    font-size: 26px;
  }

  .comment-count {
    font-size: 16px;
  }

  .comment-area:after {
    display: block;
    content: ' ';
    visibility: hidden;
    height: 0;
    clear: both;
  }

  .comment-area textarea {
    width: 100%;
    outline: none;
    font-size: 14px;
    padding: 5px;
    resize: none;
    -webkit-appearance: none;
    border: 1px solid #CCC;
  }

  .pull-right {
    float: right;
  }

  .btn-comment {
    height: 32px;
    width: 80px;
    text-align: center;
    text-shadow: 0 1px 0 #FFF;
    color: #555;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid #CCC;
    border-bottom-color: #AAA;
    border-bottom-right-radius: 0;
    -webkit-border-bottom-right-radius: 0;
    background-color: #E6E6E6;
    background-repeat: no-repeat;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#FCFCFC), color-stop(25%, #FCFCFC), to(#E6E6E6));
    background-image: -webkit-linear-gradient(#FCFCFC, #FCFCFC 25%, #E6E6E6);
    background-image: -moz-linear-gradient(top, #fcfcfc, #fcfcfc 25%, #e6e6e6);
    background-image: -ms-linear-gradient(#fcfcfc, #fcfcfc 25%, #e6e6e6);
    background-image: linear-gradient(#FCFCFC, #FCFCFC 25%, #E6E6E6);
    transition: all .15s linear;
    -webkit-transition: all .15s linear;
    -moz-transition: all .15s linear;
    box-shadow: inset 0 0 1px #FFF;
  }
  .comment-list .comment {
    padding: 0 5px;
  }
  .comment-list .comment:before {
    border-bottom: 1px solid #EEE;
    content: " ";
    display: block;
    margin-top: 5px;
  }

  .comment-list .comment:last-child:after {
    border-bottom: none;
  }

  .git-path a {
    color: #4183C4;
  }

  .comment .group {
    padding: 5px 0px;
  }

  .comment .group:first-child {
    background: #EEE;
    padding: 5px;
  }

  .comment .group {
    background: #FAFAFA;
  }

  .comment .title {
    font-size: 15px;
  }

  .comment .comment-content {
    font-size: 14px;
    padding: 5px;
  }

  .left-side {
    float: left;
    width: 70%;
    padding-right: 15px;
  }

  .right-side {
    width: 30%;
    float: right;
    border-left: 1px solid #EFEFEF;
  }

  .clearfix {
    clear: both;
  }

  .close {
    display: block;
    position: absolute;
    top: 1px;
    right: 10px;
    font-weight: 800;
    font-size: 22px;
    cursor: pointer;
  }

</style>

<script type="text/x-jquery-tmpl" id='tmpl'>
  <div class="detail-wrapper  animated zoomIn">
  <div class="close"><a>x</a></div>
    <div class="left-side">
      <p class='title'><%=name%></p>
      <div class="line"></div>
       <div class="block">
        <p class="title sub-title">Git Page</p>
        <div class="git-path"><a href=""><%=home_url%></a></div>
      </div>
      
      <div class="line"></div>
        <div class="desc">
          <%=description%>
        </div>
      <div class="line"></div>
    </div>
    <div class="right-side">
      <div class="block">
        <p class='title sub-title'>Comments <span class='comment-count'><%=comments.length%> post</span></p>
        <div class="comment-area">
          <textarea id="commentText" placeholder="Please comment it"></textarea>
          <ul class='star'>
            <li class='r1' data-score=1><a class='' title='1分'>1</a></li>
            <li class='r2' data-score=2><a class='' title='2分'>2</a></li>
            <li class='r3' data-score=3><a class='' title='3分'>3</a></li>
            <li class='r4' data-score=4><a class='' title='4分'>4</a></li>
            <li class='r5' data-score=5><a class='' title='5分'>5</a></li>
          </ul>
          <button id="sendBtn" class='pull-right btn-comment'>Send</button>
        </div>
        <ul class='comment-list'>
          <%for(var i=0;i<comments.length;i++){
            var comment = comments[i];
          %>
            <li class='comment'>
              <div class='group'>
                <span class="title"><%=comment.reviewer%></span>

                
              </div>
              <div class="group">
                <div class="comment-content">
                  <%=comment.comment%>
                </div>
              </div>
            </li>
          <%}%>
        </ul>
      </div>
    </div>
    <div class="clearfix"></div>
  </div>
</script>